<!-- toaster directive -->
<toaster-container
        toaster-options="{'position-class': 'toast-top-right', 'close-button':true}"></toaster-container>
<!-- / toaster directive -->
<!-- 导航条 -->
<div class="bg-white bread-crumb">
    <ul class="breadcrumb b-a m-b-n-xs lter b-b wrapper-md">
        <li><a ui-sref="main"><i class="glyphicon glyphicon-user"></i>数据管理</a></li>
        <li><a ui-sref="main.member.list" class="active">导入日志</a></li>
    </ul>
</div>

<!-- 加载提醒 -->
<div ng-show="loading" class="text-center m-t-md text-lg dataWarn"><i class="fa fa-spin fa-spinner"></i> 数据加载中...</div>

<!-- 内容区域 -->
<div ng-hide="loading" class="wrapper-md content"> <!-- ng-hide="loading" -->
    <!-- 数据显示 -->
    <div class="wrapper-data">
        <div class="panel panel-default">
            <!-- 头部 -->
            <div class="panel-heading clearfix">

                <div class="w-auto">
                    <form class="form-inline"> <!-- ng-submit="search()" -->

                       <!-- <div class="form-group">
                            <label for="name">姓名：</label>
                            <input type="text" class="form-control" ng-model="param.personName" style="width: 180px"
                                   id="name" placeholder="请输入姓名">
                        </div>
                        -->
                        <div class="form-group">
                            <label for="result">导入结果：</label>
                            <select class="form-control" style="width: 140px" ng-model="param.result" name="result"
                                    id="result">
                                <option value="" ng-selected="1">全部</option>
                                <option value="1">成功</option>
                                <option value="0">失败</option>
                            </select>
                        </div>

                        <div class="form-group">
                            <button type="submit" class="btn btn-primary new-primary" style="margin-left: 10px"
                                    ng-click="clearSearch()" ng-show="read">查询
                            </button>
                        </div>

                    </form>


                </div>
            </div>

            <!-- 数据表格 -->
            <div class="table-responsive">
                <table class="table table-striped b-t b-light text-center">
                    <thead>
                    <tr>
                        <th>操作员</th>
                        <th>时间</th>
                        <th>导入结果</th>
                        <th>失败原因</th>
                        <th>姓名</th>
                        <th>手机号码</th>
                        <th>身份证号码</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr ng-repeat="item in pageInfo.data">
                        <td class="v-middle">{{item.user_name}}</td>
                        <td class="v-middle">{{item.create_time}}</td>
                        <td class="v-middle">
                            <span ng-show="item.result=='成功'" class="text-success">成功</span>
                            <span ng-show="item.result=='失败'" class="text-danger">失败</span>
                        </td>
                        <td class="v-middle">{{item.cause}}</td>
                        <td class="v-middle">{{item.name}}</td>
                        <td class="v-middle">{{item.mobileNo}}</td>
                        <td class="v-middle">{{item.IDCardNo}}</td>
                        <!--  <td class="v-middle">{{item.address}}</td> -->
                        <td class="v-middle">
                            <a ui-sref="main.download.details({id: item.id})" ng-show="read">
                                <!--<i class="fa fa-edit m-r-xs text-sm"></i>-->
                                详情
                            </a>
                            <!--class="btn btn-sm btn-primary"-->
                            <!--<a ui-sref="main.member.update({id: item.personId})" ng-show="update">
                                &lt;!&ndash;<i class="fa fa-edit m-r-xs text-sm"></i>&ndash;&gt;
                                编辑
                            </a>-->
                            <!--class="btn btn-sm btn-primary"-->

                            <!--class="btn btn-sm btn-danger m-l-xs"-->
                            <!--<i class="fa fa-ban m-r-xs text-sm"></i>-->
                            <!--<button ng-click="delItem(item.personId)" type="button"
                                    style="border:none;color:#fb7009;border-radius:4px;background: none;"
                                    ng-show="dele" ng-show="dele">
                                删除
                            </button>-->
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <!-- /.table-responsive -->

            <!-- 底部分页 -->
            <span data-ng-include=" 'src/tpl/pageInfo.html' "></span>
        </div>
        <!-- /.panel -->
    </div>
    <!-- /.wrapper-data -->

</div>
<!-- /.wrapper-md -->

<style scoped>

</style>